package com.ultrasoft.farmasoft.repository;

import java.util.Date;
import java.util.List;

import com.ultrasoft.farmasoft.domain.Transaction;

public interface TransactionDao {
	public List<Transaction> getListTransactionByPharmacyIdByUserId(Integer pharmacyId,Integer userId);
	public List<Transaction> getListTransactionByStartDateByEndDate(Date start,Date end);
	public List<Transaction> getListTransactionByPharmacyIdByStartDateByEndDate(Integer pharmacyId,Date start,Date end);
	public List<Transaction> getListTransaction();
	public List<Transaction> getListTransactionByDateTransaction(Date dateTransaction);
	public List<Transaction> getListTransactionByPackageId(Integer packageId);
	public List<Transaction> getListTransactionByClientId(Integer clientId);
	public List<Transaction> getListTransactionByOperationId(Integer operationId);
	public List<Transaction> getListTransactionByPeriodIds(Integer periodIds);
	public List<Transaction> getListTransactionByTransactionId(Integer transactionId);
	public Transaction findTransactionByPeriodIdsByTransactionId(Integer periodIds,Integer transactionId);	
	public Integer findTransactionIdByPeriodIdsMax(Integer periodIds);
    public void remove(Transaction transaction);
    public void update(Transaction transaction);
	public void add(Transaction transaction);
}
